package com.caine.order.feign;

import com.caine.order.feign.factory.PaymentFeignServiceFallbackFactory;
import com.caine.order.vo.OrderVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: CaineZhu
 * @Description:
 * @Date: Created in 18:57 2021/1/4
 * @Modified By:
 */
@Component
@FeignClient(name = "payment-service", fallbackFactory = PaymentFeignServiceFallbackFactory.class)
public interface IPaymentFeignService {
    @RequestMapping("payment/pay")
    boolean pay(OrderVO vo);
}
